<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<META NAME="ROBOTS" CONTENT="NOINDEX,FOLLOW">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>网站后台左侧</title>
<style type="text/css">
body {
font-family:'Microsoft Yahei','黑体', sans-serif;
	background:#dddddd;
}
#contents{width:100%; height:auto; height:500px;background:url(./images/admin/leftbg.jpg) no-repeat;}
.left{ width:100%; height:7px; display:inline-block;}
.right{ width:10px;position: absolute;float: right; margin-left:-7px; display:inline-block;}
 #t_l{float:left;background:url(./images/admin/bar.gif) 0px 0px repeat-x;}
 #t_r{height:15px; background:url(./images/admin/bar.gif) 0px -24px  no-repeat;}
 #b_l{float:left; background:url(./images/admin/bar.gif) 0px -14px repeat-x;}
 #b_r{height:15px;background:url(./images/admin/bar.gif) 0px -48px  no-repeat;}
 #main{ width:100%;display:inline-block; z-index:100; background:#FFF }
 #m_r{height:auto;overflow:hidden;background:url(./images/admin/b_r.gif) repeat-y; z-index:0}
 #center{height:auto;}
 #main ul li{ list-style:none;position:relative;width:140px; height:25px; float:right; margin: 0px -5px 8px 0px; display:block;  z-index:150;   line-height:25px; text-align:center; }
 #main ul li a{font-size:12px; color:#000 ; text-decoration:none;}
 .menu_current{background:url(./images/admin/menu_bg.gif);}
 .menu_current a{font-weight:bold; }
</style>
</head>
<body>
<div id="contents">
	<div id="top">
		<span class="left"  id="t_l"></span>
        <span class="right" id="t_r"></span>
    </div>
	<div id="center">
    	<span class="main"  id="main"><br />
        	<ul>
            <{foreach from=$menu item=datil key=id}>
        		<li><a onclick="menu(<{$id}>)"  href="./index.php?c=admin&a=<{$datil.a}>&mod=<{$datil.mod}>" target="main-frame" ><{$datil.datil}></a></li>
           <{/foreach}>
            <li></li>
           </ul>
        </span>
    	<span class="right" id="m_r"></span>
    </div>
	<div id="bellow">
    	<span class="left"  id="b_l"></span>
        <span class="right" id="b_r"></span>
     </div>
</div>
<script type="text/javascript">
var objs = document.getElementsByTagName("a");
function setHeight(){
	document.getElementById("m_r").style.height=document.getElementById("main").offsetHeight + "px";//为右边框赋高度
	//window.parent.frames[3].location.href= "./index.php?c=admin&a=<{$datil.a.0}>&mod=<{$datil.mod.0}>";	
}
function menu(j){
	for(var i=0; i<objs.length; i++){ 
		if(i!=j-1){
			objs[i].parentNode.className='';
			objs[i].style.color="black";		
		}else{
			objs[i].parentNode.className='menu_current';
			objs[i].style.color="white"; 	
		}      
   }
//document.getElementById("bt_"+i).parentNode.className='menu_current';
}
window.onload=function(){
	setHeight();
	objs[0].parentNode.className='menu_current';
	objs[0].style.color="white"; 
	window.parent.frames[3].location.href= objs[0].href;		
}
window.onresize = function(){
  	setHeight();
}
</script>
</body>
</html>
